package com.xmy.cultivate.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.StudentForData;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 不同类型，需要排除或参与的数据，如：人教版学员不参与率的计算，待转校学生 服务类
 * </p>
 *
 * @author hpiggy
 * @since 2024-01-08
 */
public interface IStudentForDataService extends IService<StudentForData> {

    IPage<StudentForData> findAll(IPage<StudentForData> page, Long schoolId, Long studentId, Long subjectsId, Integer yearPart, Integer quarterNum, Integer lessonType, Long type, Integer yearClassId, Long gradeId, Long teacherId, String studentName);

    /**
     * 获取待添加的转校学员
     * @param page
     * @param schoolId
     * @param studentId
     * @param subjectsId
     * @param yearPart
     * @param quarterNum
     * @param lessonType
     * @param type
     * @param gradeId
     * @param studentName
     * @return
     */
    IPage<StudentForData> getWaitTransterStudent(IPage<StudentForData> page, Long schoolId, Long studentId, Long subjectsId, Integer yearPart, Integer quarterNum, Integer lessonType, Long type,Integer yearClassId,Long gradeId,Long teacherId,String studentName);

    boolean updateStatusForWaitTranster(Integer yearPart, Integer quarterNum, Long studentId, Long subjectsId, Integer status);
}
